<div [@routerTransition]>
        <div class="m-subheader">
            <div class="d-flex align-items-center">
                <div class="mr-auto col-xs-6">
                    <h3 class="m-subheader__title m-subheader__title--separator">
                        <span>管道流程</span>
                    </h3>
                    <span class="m-section__sub">
                        管道流程的文本头信息
                    </span>
                </div>
                <div class="col-xs-6 text-right">
                    <!-- <button *ngIf="isGranted('Pages.Administration.Languages.Create')" (click)="createOrEditLanguageModal.show()" class="btn btn-primary blue"><i class="fa fa-plus"></i> {{l("CreateNewLanguage")}}</button> -->
                </div>
            </div>
        </div>
    
        <div class="m-content">
            <div class="m-portlet m-portlet--mobile">
                <div class="m-portlet__head">
                    <div class="m-portlet__head-caption">
                        <div class="m-portlet__head-title">
                            <h3 class="m-portlet__head-text">
                                订制单列表
                            </h3>
                            
                        </div>
                    </div>
                    <div class="m-portlet__head-tools">
                        <ul
                            class="nav nav-pills nav-pills--brand m-nav-pills--align-right m-nav-pills--btn-pill m-nav-pills--btn-sm"
                            role="tablist"
                        >
                            <li
                                class="nav-item m-tabs__item"
                                style="width: 300px; margin-left: 40px;"
                            >
                                <a
                                    href="javascript:;"
                                    class="m-portlet__nav-link m-btn--pill"
                                >
                                    <div class="m-input-icon m-input-icon--right">
                                        <input
                                            type="text"
                                            [(ngModel)]="filterText"
                                            (keyup.enter)="getSideTasks($event)"
                                            class="form-control m-input m-input--solid"
                                            placeholder="Search..."
                                        />
                                        <span
                                            class="m-input-icon__icon m-input-icon__icon--right"
                                        >
                                            <span (click)="getSideTasks($event)">
                                                <i
                                                    class="la la-search m--font-brand"
                                                ></i>
                                            </span>
                                        </span>
                                    </div>
                                </a>
                            </li>
                        </ul>
                    </div>
                </div>
                <div class="m-portlet__body">
                    <div class="row align-items-center" style="margin: 0;">
                        <div class="tab-content" style="width: 100%;">
                            <div class="tab-pane active">
                                <div
                                    class="primeng-datatable-container"
                                    [busyIf]="primengTableHelper.isLoading"
                                >
                                    <div class="m-pipeline">
                                        <div class="table-responsive dzd">
                                            <table
                                                #dataTable
                                                class="table"
                                                id="pipe-table"
                                            >
                                                <thead>
                                                    <tr>
                                                        <td
                                                            class="m-pipeline__base_dzd"
                                                        >
                                                            定制任务号
                                                        </td>
                                                        <td
                                                            class="m-pipeline__base_dzd"
                                                        >
                                                            图号
                                                        </td>
                                                        <td
                                                            class="m-pipeline__base_dzd"
                                                        >
                                                            任务名称
                                                        </td>
                                                        <td
                                                            class="m-pipeline__status_dzd"
                                                        >
                                                            数量
                                                        </td>
                                                        <td
                                                            class="m-pipeline__time_dzd"
                                                        >
                                                            生成时间
                                                        </td>
                                                        <td
                                                            class="m-pipeline__node_dzd"
                                                        >
                                                            定制车间
                                                        </td>
                                                        <td
                                                            class="m-pipeline__node_dzd"
                                                        >
                                                            备注
                                                        </td>
                                                        <td
                                                            class="m-pipeline__action_dzd"
                                                            *ngIf="permission.isGranted('Pages.Dzhd.Operation')"
                                                        >
                                                            操作
                                                        </td>
                                                    </tr>
                                                </thead>
                                                <tbody>
                                                    <tr
                                                        *ngFor="
                                                            let plan of primengTableHelper.records
                                                        "
                                                    >
                                                        <td>
                                                                <span>
                                                                        {{
                                                                            plan.taskCode
                                                                        }}
                                                                    </span>
                                                        </td>
    
                                                        <td>
                                                            <span>
                                                                    {{
                                                                        plan.drawingCode
                                                                    }}
                                                            </span>
                                                        </td>
                                                        <td>
                                                            <span>
                                                                    {{
                                                                        plan.drawingName
                                                                    }}
                                                            </span>
                                                        </td>
                                                        <td>
                                                            <span>
                                                                {{ plan.totalQuantity }}
                                                            </span>
                                                        </td>
                                                        <td>
                                                            <span>
                                                                    {{
                                                                        plan.creationTime
                                                                            | momentFormat
                                                                                : 'YYYY-MM-DD'
                                                                    }}
                                                            </span>
                                                        </td>
                                                        <td>
                                                            <span>
                                                                {{
                                                                    plan.producerName
                                                                }}
                                                            </span>
                                                        </td>
                                                        <td>
                                                            <span>
                                                                {{ plan.remark }}
                                                            </span>
                                                        </td>
                                                        <td *ngIf="permission.isGranted('Pages.Dzhd.Operation')">
                                                                <button
                                                                type="button"
                                                                style="margin-left: 25px;"
                                                                class="btn btn-sm m-btn--gradient-from-accent m-btn--gradient-to-success"
                                                                (click)="printdzdModal.show(plan)"
                                                            >
                                                                打印订制单
                                                            </button>
                                                        </td>
                                                    </tr>
                                                </tbody>
                                            </table>
                                            <div class="primeng-paging-container">
                                                <p-paginator
                                                    rows="{{
                                                        primengTableHelper.defaultRecordsCountPerPage
                                                    }}"
                                                    #paginator
                                                    (onPageChange)="
                                                    getSideTasks($event)
                                                    "
                                                    [totalRecords]="
                                                        primengTableHelper.totalRecordsCount
                                                    "
                                                    [rowsPerPageOptions]="
                                                        primengTableHelper.predefinedRecordsCountPerPage
                                                    "
                                                >
                                                </p-paginator>
                                                <span class="total-records-count">
                                                    {{
                                                        '总计:' +
                                                            primengTableHelper.totalRecordsCount
                                                    }}
                                                </span>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <printdzdModal #printdzdModal (modalSave)="getSideTasks($event)"></printdzdModal>
    </div>